import java.util.Scanner;

/**
 * @author tongchen
 * @create 2023-02-06 22:27
 */
public class Main {
    public static void main(String[] args) {
       Scanner scan=new Scanner(System.in);
       float a=scan.nextFloat();
       StringBuilder stringBuilder=new StringBuilder();
       stringBuilder.append(a);
        StringBuilder reverse = stringBuilder.reverse();

        System.out.println(reverse);
    }
}
